package com.ruoyi.asktreat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.asktreat.mapper.AskTreatMapper;
import com.ruoyi.asktreat.domain.AskTreat;
import com.ruoyi.asktreat.service.IAskTreatService;

/**
 * 治疗管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
@Service
public class AskTreatServiceImpl implements IAskTreatService 
{
    @Autowired
    private AskTreatMapper askTreatMapper;

    /**
     * 查询治疗管理
     * 
     * @param treatId 治疗管理主键
     * @return 治疗管理
     */
    @Override
    public AskTreat selectAskTreatByTreatId(Long treatId)
    {
        return askTreatMapper.selectAskTreatByTreatId(treatId);
    }

    /**
     * 查询治疗管理列表
     * 
     * @param askTreat 治疗管理
     * @return 治疗管理
     */
    @Override
    public List<AskTreat> selectAskTreatList(AskTreat askTreat)
    {
        return askTreatMapper.selectAskTreatList(askTreat);
    }

    /**
     * 新增治疗管理
     * 
     * @param askTreat 治疗管理
     * @return 结果
     */
    @Override
    public int insertAskTreat(AskTreat askTreat)
    {
        return askTreatMapper.insertAskTreat(askTreat);
    }

    /**
     * 修改治疗管理
     * 
     * @param askTreat 治疗管理
     * @return 结果
     */
    @Override
    public int updateAskTreat(AskTreat askTreat)
    {
        return askTreatMapper.updateAskTreat(askTreat);
    }

    /**
     * 批量删除治疗管理
     * 
     * @param treatIds 需要删除的治疗管理主键
     * @return 结果
     */
    @Override
    public int deleteAskTreatByTreatIds(Long[] treatIds)
    {
        return askTreatMapper.deleteAskTreatByTreatIds(treatIds);
    }

    /**
     * 删除治疗管理信息
     * 
     * @param treatId 治疗管理主键
     * @return 结果
     */
    @Override
    public int deleteAskTreatByTreatId(Long treatId)
    {
        return askTreatMapper.deleteAskTreatByTreatId(treatId);
    }
}
